<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <title>模拟考试</title>
    <%@include file="/WEB-INF/views/include/weixinhead.jsp" %>
    <script src="${ctxStatic}/modules/wechat/js/interface.js"></script>
</head>
<body>
<!--模拟考试-->
<div data-role="page" id="entranceExamination" class="page" >
    <div data-role="header" class="header header-1">模拟考试
        <span class="return-btn"><a href="/f/campusinfo/homepage" data-ajax="false" data-transition="slideup"><img src="${ctxStatic}/modules/wechat/css/images/yuanjiaojuxing25.png" alt=""></a></span>
    </div>
    <div role="main" class="content-1">
        <div class="msg-content">
        </div>
    </div>
</div>
<script>
    $(document).ready(function(){
        $.ajax({
            url:interfaceSimulationTest+generateMixed(9),
            type:'post',
            success:function(data){
                for(var i=0;i<data.page.length;i++){
                    $(".msg-content").eq(0).append("<div class='msg-div' id="+data.page[i].id+"><div class='msg-content-left'> <div class='msg-div-title'>"+data.page[i].examType+"&nbsp;&nbsp;("+data.page[i].examName+")</div><div class='msg-div-text-special'>"+data.page[i].examShort+"</div> </div> <img onerror=\"this.onerror='';src='${ctxStatic}/modules/wechat/css/images/sx-img.png'\" src='${imgIp}"+data.page[i].examImg+"'></div>")
                }
            }
        });

        $(document).delegate(".msg-div","tap",function () {
            var index=$(".msg-div").index(this);
            var id=$(".msg-div").eq(index).attr("id");
            if(window.sessionStorage){
                sessionStorage.setItem("examId",id);
                window.location.href="/f/campusinfo/examSubjects"+generateMixed(9);
            }else {
                window.location.href="/f/campusinfo/examSubjects?id="+id+generateMixed(9);
            }
        })
    })
</script>
</body>
</html>